package LexPortal.TestCases;

import junit.framework.TestCase;
import LexPortal.DaoImpl.UserDaoImpl;
import LexPortal.Entity.User;

public class UserDaoImplTest extends TestCase {

	public void testInset() {
		UserDaoImpl impl = new UserDaoImpl();
		User user = new User();
		user.setName("Lex");
		user.setPassword("password");
		user.setAddress("Address");
		user.setEmail("Email");
		user.setPhone("Phone");
		try {
			impl.Insert(user);
		} catch (Exception ex) {

		}
		// junit.framework.Assert.assertEquals(1, actual);
	}

	public void testQueryByID() {
		try {
			UserDaoImpl impl = new UserDaoImpl();
			User user = impl.QueryById(2);

			System.out.println(user.getName());
		} catch (Exception ex) {

		}
	}

}
